package com.zxd.dao;

import com.zxd.entity.Master;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * MasterDao
 * Created by 涂奕恒 on 2018/10/19 0019 下午 4:36.
 */
public interface MasterDao extends JpaRepository<Master, Integer>, JpaSpecificationExecutor<Master> {

    @Query("select a from Master a where a.account = ?1")
    Master findOneByAccount(String account);
}